#include "StdAfx.h"
#include "Color.h"

	namespace las
	{
		Color::Color()
		{
			m_value[0] = 0;
			m_value[1] = 0;
			m_value[2] = 0;
			m_value[3] = 0;
		}

		Color::Color( std::uint16_t red, std::uint16_t green, std::uint16_t blue )
		{
			m_value[0] = red;
			m_value[1] = green;
			m_value[2] = blue;
			m_value[3] = 0;
		}

		Color::Color( std::uint16_t red, std::uint16_t green, std::uint16_t blue, std::uint16_t NIR )
		{
			m_value[0] = red;
			m_value[1] = green;
			m_value[2] = blue;
			m_value[3] = NIR;
		}

		Color::~Color()
		{

		}

		std::uint16_t Color::GetRed() const
		{
			return m_value[0];
		}

		void Color::SetRed( std::uint16_t value )
		{
			m_value[0] = value;
		}

		std::uint16_t Color::GetGreen() const
		{
			return m_value[1];
		}

		void Color::SetGreen( std::uint16_t value )
		{
			m_value[1] = value;
		}

		std::uint16_t Color::GetBlue() const
		{
			return m_value[2];
		}

		void Color::SetBlue(std::uint16_t value)
		{
			m_value[2] = value;
		}

		std::uint16_t Color::GetNIR() const
		{
			return m_value[3];
		}

		void Color::SetNIR( std::uint16_t value )
		{
			m_value[3] = value;
		}

	}
